package com.sdweizan.sdk.bytedance.bean.distribution;

import com.alibaba.fastjson.annotation.JSONField;
import com.sdweizan.sdk.bytedance.bean.BdBaseResponse;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class BdCreateReturnResponse extends BdBaseResponse {
  @JSONField(name = "return_info")
  private ReturnInfo returnInfo;

  @NoArgsConstructor
  @Data
  public static class ReturnInfo {
    @JSONField(name = "app_id")
    private String appId;

    @JSONField(name = "thirdparty_id")
    private String thirdpartyId;
    // 平台分账单号
    @JSONField(name = "settle_no")
    private String settleNo;
    // 商户分账单号
    @JSONField(name = "out_settle_no")
    private String outSettleNo;
    // 商户回退单号
    @JSONField(name = "out_return_no")
    private String outReturnNo;
    // 回退商户号
    @JSONField(name = "merchant_uid")
    private String merchantUid;

    @JSONField(name = "return_amount")
    private Integer returnAmount;
    // 回退状态成功-SUCCESS失败-FAIL处理中-PROCESSING
    @JSONField(name = "return_status")
    private String returnStatus;

    @JSONField(name = "return_no")
    private String returnNo;
    // 回退失败的原因，此字段仅回退结果为FAIL时存在
    @JSONField(name = "fail_reason")
    private String failReason;
    // 回退完成时间，Unix 时间戳，单位秒，10 位，整型数
    @JSONField(name = "finish_time")
    private Long finishTime;
    // 用户附加信息
    @JSONField(name = "cp_extra")
    private String cpExtra;
  }
}
